package cn.edu.zjut.medlinebackend.service;

import cn.edu.zjut.medlinebackend.model.Group;

import java.util.List;

public interface GroupService {


    boolean creatGroup(Group group);

    List<Group> searchGroup(String groupname);
    List<Group> getAllGroup(String username);

    Group searchGroupByName(String groupname);

    boolean deleteGroup(String groupname, String username);

    boolean joinGroup(String username, String groupname);
    boolean exit(String username,String groupname);
}
